<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
		<p>电子邮箱：<input type="email" name="a" /></p>
		<dl>
				 <dt>爱好：</dt>
				 <dd>
					 <label>
						 <input type="checkbox" id="checkbox" value="checkbox" />
					 </label>
					 运动&nbsp;&nbsp;
					 <label>
						 <input type="checkbox" id="checkbox2" value="checkbox" />
					 </label>
					 聊天&nbsp;&nbsp;
					 <label>
						 <input type="checkbox" id="checkbox3" value="checkbox" />
					 </label>
					 玩游戏
				 </dd>
			 </dl>
	</body>
	<script type="text/javascript" src="../jq/jQuery-1.8.3.js" ></script>
	<script>
		$(function(){
			$("p input").submit(function(){
				if($("p input").contents("@")){
					return true;
				}
			})
		});
	</script>
</html>
